# Contributor: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
pkgname=lsd
pkgver=1.0.0
pkgrel=0
pkgdesc="Next-Gen ls command"
url="https://github.com/Peltoche/lsd"
arch="all"
license="Apache-2.0"
makedepends="cargo cargo-auditable"
source="https://github.com/Peltoche/lsd/archive/refs/tags/v$pkgver/lsd-$pkgver.tar.gz"
options="net" # needed for downloading dependencies

build() {
	cargo auditable build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	cargo auditable install --locked --path . --root="$pkgdir/usr"
	rm "$pkgdir"/usr/.crates*
}

sha512sums="
c16fbbaa23bcc24050180d415f992459b423473eeb7771b1b8cd59aab5db97bf8d0cd01e3db507031f9588291bb8c90e02397b9a146973a054d338b60da10220  lsd-1.0.0.tar.gz
"
